package VUTHANHPHUC_HOMEWORK_OOP_LV2;

import java.util.Scanner;

public class TriangleViews {
public static void main(String[] args) {
	Triangle objC = new Triangle();
	Scanner nhap = new Scanner(System.in);
	double side1;
	double side2;
	double side3;
	System.out.println("Nhập cạnh 1:");
	side1 = nhap.nextDouble();
	objC.setSide1(side1);
	System.out.println("Nhập cạnh 2:");
	side2 =  nhap.nextDouble();
	objC.setSide2(side2);
	System.out.println("Nhập cạnh 3:");
	side3 =  nhap.nextDouble();
	objC.setSide3(side3);
	TriangleControllers tri = new TriangleControllers(objC);
	System.out.println(""+tri.Perimeter());
	System.out.println(""+tri.Area());
}
}
